package org.ccay.core.orm;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import org.ccay.core.request.impl.RequestContextManager;

public class AddtionDynamicContextProvider implements Map<String, Object> {

	private Map<String,Object> context = new HashMap<String,Object>();
	
	public AddtionDynamicContextProvider(){
		context.put("_requestContext", RequestContextManager.getCurrent(true));
	}
	
	@Override
	public int size() {
		return context.size();
	}

	@Override
	public boolean isEmpty() {
		return context.isEmpty();
	}

	@Override
	public boolean containsKey(Object key) {
		return context.containsKey(key);
	}

	@Override
	public boolean containsValue(Object value) {
		return context.containsValue(value);
	}

	@Override
	public Object get(Object key) {
		return context.get(key);
	}

	@Override
	public Object put(String key, Object value) {
		return context.put(key, value);
	}

	@Override
	public Object remove(Object key) {
		return context.remove(key);
	}

	@Override
	public void putAll(Map<? extends String, ? extends Object> m) {
		context.putAll(m);
	}

	@Override
	public void clear() {
		context.clear();
		
	}

	@Override
	public Set<String> keySet() {
		return context.keySet();
	}

	@Override
	public Collection<Object> values() {
		return context.values();
	}

	@Override
	public Set<java.util.Map.Entry<String, Object>> entrySet() {
		return context.entrySet();
	}
}
